#makefile for windows 
#Laptop
#CFLAGS=-Wall -IC:\pcre\7.0\include
#LFLAGS=-lpcre -lpcreposix -LC:\pcre\7.0\lib

#Czarny/D:
CFLAGS=-Wall -ID:\pcre\include
LFLAGS=-lpcre -lpcreposix -LD:\pcre\lib

SOURCES=$(wildcard *.c)
OBJECTS=$(SOURCES:.c=.o)

all: run.exe

run.exe: $(OBJECTS)
	gcc -o $@ $^ $(LFLAGS)

$(OBJECTS): %.o: %.c
	gcc -c $< -o $@ $(CFLAGS)
	
clean:
	rm -f $(OBJECTS) run.exe